﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PrintQCR.aspx.cs" Inherits="dzs.Web.PrintQCR" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>打印二维码</title>
    <script type="text/javascript">
        function print() {
            var WebBrowser = '<OBJECT ID="wb" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
            document.body.insertAdjacentHTML('beforeEnd', WebBrowser); //在body标签内加入html（WebBrowser activeX控件） 
            wb.execwb(7, 1);
        }
    </script>
    <style type="text/css" media="print">
        .noprint
        {
            display: none;
        }
    </style>
</head>
<body style="text-align: center;">
    <form id="form1" runat="server">
    <%--<object id="wb" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"
        name="wb">--%>
    </object>
    <div>
        <asp:Image ID="Image1" runat="server" />
    </div>
    <div class="noprint">
        <input type="button" onclick="print()" value="打印二维码" />
    </div>
    </form>
</body>
</html>
